// 自动生成模板DeployAuthorized
package deploy

import ()

// 授权管理 结构体  DeployAuthorized
type DeployAuthorized struct {
	AdminKey       string `json:"adminKey" form:"adminKey" gorm:"column:admin_key;comment:信息秘钥;size:255;"`         //信息秘钥
	ApiKey         string `json:"apiKey" form:"apiKey" gorm:"column:api_key;comment:接口秘钥;size:255;"`               //接口秘钥
	App            string `json:"app" form:"app" gorm:"column:app;comment:应用名;size:255;" binding:"required"`       //应用名
	Createtime     *int   `json:"createtime" form:"createtime" gorm:"column:createtime;comment:创建时间;size:10;"`     //创建时间
	Domain         string `json:"domain" form:"domain" gorm:"column:domain;comment:域名;size:255;"`                  //域名
	Endtime        *int   `json:"endtime" form:"endtime" gorm:"column:endtime;comment:维护时间;size:10;"`              //维护时间
	FilesSwitch    *bool  `json:"filesSwitch" form:"filesSwitch" gorm:"column:files_switch;comment:源码验证;"`         //源码验证
	FirewallRule   string `json:"firewallRule" form:"firewallRule" gorm:"column:firewall_rule;comment:防火墙规则;"`     //防火墙规则
	FirewallSwitch *bool  `json:"firewallSwitch" form:"firewallSwitch" gorm:"column:firewall_switch;comment:防火墙;"` //防火墙
	GenericSwitch  *bool  `json:"genericSwitch" form:"genericSwitch" gorm:"column:generic_switch;comment:泛型验证;"`   //泛型验证
	Id             *int   `json:"id" form:"id" gorm:"primarykey;column:id;comment:序号;size:10;"`                    //序号
	IpSwitch       *bool  `json:"ipSwitch" form:"ipSwitch" gorm:"column:ip_switch;comment:IP验证;"`                  //IP验证
	Key            string `json:"key" form:"key" gorm:"uniqueIndex;column:key;comment:授权秘钥;size:32;"`              //授权秘钥
	Name           string `json:"name" form:"name" gorm:"column:name;comment:名称;size:255;"`                        //名称
	RedisId        *int   `json:"redisId" form:"redisId" gorm:"column:redis_id;comment:绑定reids;size:19;"`          //绑定reids
	Remark         string `json:"remark" form:"remark" gorm:"column:remark;comment:备注;size:255;"`                  //备注
	ServerSwitch   *bool  `json:"serverSwitch" form:"serverSwitch" gorm:"column:server_switch;comment:主机验证;"`      //主机验证
	Switch         *bool  `json:"switch" form:"switch" gorm:"column:switch;comment:系统状态;"`                         //系统状态
	Updatetime     *int   `json:"updatetime" form:"updatetime" gorm:"column:updatetime;comment:更新时间;size:10;"`     //更新时间
}

// TableName 授权管理 DeployAuthorized自定义表名 deploy_authorized
func (DeployAuthorized) TableName() string {
	return "deploy_authorized"
}
